package com.sunmouse.toolkit.bean;

/**
 * Created by Administrator on 2017/9/25 0025.
 */
public class MessageBean {
    private From from;
    private String time;
    private String msg;
    private String name;
    private String avatarUrl;
    private int avatar;

    public MessageBean() {
        this.from=From.OTHER;//default from;
    }

    public From getFrom() {
        return from;
    }

    public void setFrom(From from) {
        this.from = from;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public int getAvatar() {
        return avatar;
    }

    public void setAvatar(int avatar) {
        this.avatar = avatar;
    }

    /**
     * msg resource
     */
    public enum From{
        ME(1),
        OTHER(2);

        int value;

        From(int value) {
            this.value = value;
        }
    }
}
